var actor;
actor = ds_list_find_value(global.team,global.team_member_current);

if (distance_to_object(actor) < 32) && (actor.image_xscale == sign(actor.x - x)) && (actor.vsp == 0)
{
    if (actor.acting == true)
    {
        trigger_toggle(switch_trigger);
    }
}

